import { buildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 项目堆场列表
  getProjectYardList: {
    url: '/api/v1/project/project_stack_point',
    method: 'get'
  },
  // 工厂堆场列表
  getYardList: {
    url: '/api/v1/project/stack_point',
    method: 'get'
  },
  // 添加堆场
  createYard: {
    url: '/api/v1/project/stack_point',
    method: 'post'
  },
  // 编辑堆场
  updateYard: {
    url: '/api/v1/project/stack_point',
    method: 'put',
    type: 'restful'
  },
  // 删除堆场
  deleteYard: {
    url: '/api/v1/project/stack_point',
    method: 'delete',
    type: 'restful'
  }

}

export default buildService(settings)
